import Router from 'koa-router'
const router = new Router()

import CommonController from '../controller'

router.prefix('/common')

// 上传文件到服务器目录
router.post('/upload', CommonController.upload);

// 上传文件到七牛
router.get('/upload/qiniu', CommonController.upload_qiniu);


export default router